﻿using WeDonekRpc.Helper.Validate;

namespace Basic.FlowGatewayModule.Model
{
    public class SignFileAdd
    {
        [NumValidate("flow.log.id.error", 1)]
        public long LogId
        {
            get;
            set;
        }
        [NumValidate("flow.log.item.id.error", 1)]
        public long ItemId
        {
            get;
            set;
        }
        [NumValidate("flow.form.file.id.error", 1)]
        public long FormFileId
        {
            get;
            set;
        }
        [NumValidate("flow.file.id.error", 1)]
        public long FileId
        {
            get;
            set;
        }
        [NullValidate("flow.sign.pdf.file.uri.null")]
        [LenValidate("flow.sign.pdf.file.uri.len", 10, 255)]
        public string FileUri
        {
            get;
            set;
        }
        [NullValidate("flow.sign.pdf.file.name.null")]
        [LenValidate("flow.sign.pdf.file.name.len", 2, 50)]
        public string FileName
        {
            get;
            set;
        }
    }
}
